/* Copyright (c) 2007-2010 SmartVault Corporation, all rights reserved.
 * 
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
// Machine generated IDispatch wrapper class(es) created with Add Class from Typelib Wizard

namespace SmartVault
{
// CCustomToolbar wrapper class

class CCustomToolbar : public CWnd
{
protected:
	DECLARE_DYNCREATE(CCustomToolbar)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x7FC0A421, 0x6229, 0x41CE, { 0xAD, 0x71, 0xDC, 0x47, 0xB4, 0xBD, 0xA4, 0x34 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
						const RECT& rect, CWnd* pParentWnd, UINT nID, 
						CCreateContext* pContext = NULL)
	{ 
		return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); 
	}

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, 
				UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
				BSTR bstrLicKey = NULL)
	{ 
		return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); 
	}

    // ISmartVaultClientSDK methods
public:
    CString get_SDKVersion()
    {
        CString result;
        InvokeHelper(0x10001, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
        return result;
    }
    long get_ConnectionState()
    {
        long result;
        InvokeHelper(0x10010, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
        return result;
    }
    void InitiateLogon()
    {
        InvokeHelper(0x10012, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
    }
    LPDISPATCH Open(LPCTSTR applicationType, LPCTSTR applicationId, LPCTSTR title)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR ;
        InvokeHelper(0x10013, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, applicationType, applicationId, title);
        return result;
    }

    // ISmartVaultClientSDK properties
    // ICustomToolbar methods
public:
    BOOL get_BackgroundGradient()
    {
        BOOL result;
        InvokeHelper(0x20000, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
        return result;
    }
    void put_BackgroundGradient(BOOL newValue)
    {
        static BYTE parms[] = VTS_BOOL ;
        InvokeHelper(0x20000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
    }
    long get_BackgroundColor()
    {
        long result;
        InvokeHelper(0x20001, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
        return result;
    }
    void put_BackgroundColor(long newValue)
    {
        static BYTE parms[] = VTS_I4 ;
        InvokeHelper(0x20001, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
    }
    long get_BackgroundGradientColor()
    {
        long result;
        InvokeHelper(0x20002, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
        return result;
    }
    void put_BackgroundGradientColor(long newValue)
    {
        static BYTE parms[] = VTS_I4 ;
        InvokeHelper(0x20002, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
    }

    // ICustomToolbar properties
public:

};
};